<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="com.tangdi.production.mpapp.utils.WebPayServletUtil"
	%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ page language="java" import="com.tangdi.production.mpapp.constants.*"
	%>
<%@ page import="java.text.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("on_back", "1");

	String STARTDATE = request.getParameter("STARTDATE");
	String ENDDATE = request.getParameter("ENDDATE");
	String usrmp = request.getParameter("USRMP");
	String IDTYPECOD = request.getParameter("IDTYPECOD");
	//	out.write(STARTDATE + ENDDATE + usrmp + IDTYPECOD);
	String USRMP = (String) request.getSession().getAttribute(
			Key.COOKIE_KEY_USRMP);
	//没有校验通过就直接进来了，返回上一页(通过校验以后会将值存入session以及cookie)
	if (StringUtils.isEmpty(USRMP)) {
		WebPayServletUtil payUtil = new WebPayServletUtil();
		payUtil.toLoginPage(request, response);
	}

	WebPayServletUtil payUtil = new WebPayServletUtil();
	//out.write(basePath);
	boolean ok = payUtil.validation(request, response);
	if (!ok) {
		payUtil.toLoginPage(request, response);
	}
	request.setAttribute("title", "用户中心");
%>
<!DOCTYPE html>
<html lang="zh">
	<base href="<%=basePath%>">
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<meta name="viewport"
				content="initial-scale=1, maximum-scale=1, user-scalable=no" />
			<meta name="format-detection" content="telephone=no" />
			<meta name="format-detection" content="email=no" />
			<title>消费中心</title>
			<%
				out.write("<script type=\"text/javascript\">");
				out.write("var STARTDATE='" + STARTDATE + "';");
				out.write("var ENDDATE='" + ENDDATE + "';");
				out.write("var usrmp='" + usrmp + "';");
				out.write("var IDTYPECOD='" + IDTYPECOD + "';");
				out.write("</script>");
			%>
			<script type="text/javascript" src="js/jquery-1.7.1.min.js"
				charset="UTF-8"></script>

			<script type="text/javascript" src="js/core-1.0.js" charset="UTF-8"></script>
			<script type="text/javascript" src="js/user/user-info.js" charset="UTF-8"></script>
			<script type="text/javascript" src="js/webpay/base.js"
				charset="UTF-8"></script>
			<script type="text/javascript" src="js/webpay/login.js"
				charset="UTF-8"></script>

			<script type="text/javascript">
	
</script>

			<!-- bootstrap & fontawesome -->
			<link rel="stylesheet" href="ace_v1.3/assets/css/bootstrap.css" />
			
			<link rel="stylesheet" href="ace_v1.3/assets/css/chosen.css" />

			<!-- text fonts -->
			<link rel="stylesheet" href="ace_v1.3/assets/css/ace-fonts.css" />

			<link rel="stylesheet" href="ace_v1.3/assets/css/font-awesome.css" />
			<link rel="stylesheet" href="css/webpay/core.1.0.css" />
			<link rel="stylesheet" href="css/dialog.css" />
			<link rel="stylesheet" href="css/webpay/app.web.theme.css" />
			
			<!-- ace styles -->
			<link rel="stylesheet" href="ace_v1.3/assets/css/ace.css"
				class="ace-main-stylesheet" id="main-ace-style" />



			<!--[if lte IE 9]>
			<link rel="stylesheet" href="ace_v1.3/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

			<!--[if lte IE 9]>
		  <link rel="stylesheet" href="ace_v1.3/assets/css/ace-ie.css" />
		<![endif]-->



			<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

			<!--[if lte IE 8]>
		<script src="ace_v1.3/assets/js/html5shiv.js"></script>
		<script src="ace_v1.3/assets/js/respond.js"></script>
		<![endif]-->


			<script type="text/javascript" src="js/webpay/order_list.js"></script>
			<script type="text/javascript">
	
</script>
			<jsp:include page="../plug/head-include.jsp" />
		</head>
		<body>
			<jsp:include page="../plug/title.jsp" />
			<div class="main-container" id="main-container">

				<!-- #section:basics/sidebar -->
				<div class="main-content">
					<div class="main-content-inner">
						<!-- #section:basics/content.breadcrumbs -->
						<!-- /section:basics/content.breadcrumbs -->
						<div class="page-content">
							<div id="test"></div>
							<!-- #section:settings.box -->
							<!-- <div class="page-header">
						<h1>
							Form Elements <small> <i
								class="ace-icon fa fa-angle-double-right"></i> Common form
								elements and layouts
							</small>
						</h1>
					</div>
					 -->
							<!-- /.page-header -->


							<!-- 		<div class="row">
							<div class="col-xs-12">
								<div id="orderListView"></div>
								<!-- /.col -->
						</div>
						<!-- /.row -->
					</div>
				</div>
				<!-- /.page-content -->
			</div>
			</div>
			<!-- /.main-content -->

			</div>

		</body>
</html>
